'''
Created on 2018年2月11日

@author: wesley.wei
'''

import objectTest.Point as Point
import math

class Circle(Point):

    def __init__(self, r, x, y):
        super.__init__();
        self.r = r
    
    def edge_distance_from_origin(self):
        return abs(self.distance_from_origin(self) - self.r)
    
    def area(self):
        return math.pi*(self.r ** 2)
    
    def circumference(self):
        return 2 * math.pi * self.r
    
    